#ifndef KEYCODE_H
#define KEYCODE_H

//游戏进程
#define TLBB_PROCESS_NAME "Game.exe"
#define BASE_ADDRESS "Game.exe"
#define TLBB_GAME_CLASS_NAME "TianLongBaBuHJ WndClass"

//软件版本号
#define VERSION "1.0.2"
#define VERSION_CODE 102


//游戏窗口
#define GAME_WINDOWS_X 10
#define GAME_WINDOWS_Y 10

#define GAME_WINDOWS_WIDTH 1282
#define GAME_WINDOWS_HEIGHT 993

#define GAME_OFFSET_TIME 100

#define PCITY_LEVEL "PCity_Level"

//出地府选择城市
#define HELL_DHGZ "dongheguzhen"
#define HELL_LY "luoyang"
#define HELL_DL "dali"
#define HELL_SZ "suzhou"

//角色位值 0正常 1地府 2出窍
#define ROLE_LOCATION_NORMAL 0
#define ROLE_LOCATION_HELL 1
#define ROLE_LOCATION_REND 2

//玩家当前任务 0空闲 1跑商 2扩张
#define ROLE_TASK_NORMAL 0
#define ROLE_TASK_SHOP 1
#define ROLE_TASK_SHOP_BACK 2 //去对方
#define ROLE_TASK_SHOP_REMOTE 3 //去对方
#define ROLE_TASK_KUO_ZHANG 4 //扩张
#define ROLE_TASK_ZHONG_ZHI 5 //种植

//小地图显示的位置
#define ROLE_LOCATION_DF "siwang" //地府
#define ROLE_LOCATION_SONGSHAN "songshan"  //嵩山
#define ROLE_LOCATION_LUOYANG "songshan"  //洛阳
#define XIAO_WEI "xiaowei"

//玩家最大血量
#define BLOOD_MAX_VALUE 128
#define BLOOD_ADD_VALUE 65
//玩家最大蓝量
#define MAGIC_MAX_VALUE 128
#define MAGIC_ADD_VALUE 65

//跑商类型 0帮派之间 1帮派与洛阳或大理或苏州
#define GROUP2ERROR -1 //错误
#define GROUP2GROUP 0 //帮派之间
#define GROUP2LUOYANG 1 //帮派之间
#define GROUP2DALI 2 //帮派之间
#define GROUP2SUZHOU 3 //帮派之间

//游戏时辰
#define SHICHEN_ZI 0
#define SHICHEN_CHOU 1
#define SHICHEN_YIN 2
#define SHICHEN_MAO 3
#define SHICHEN_CHEN 4
#define SHICHEN_SI 5
#define SHICHEN_WU 6
#define SHICHEN_WEI 7
#define SHICHEN_SHEN 8
#define SHICHEN_YOU 9
#define SHICHEN_XU 10
#define SHICHEN_HAI 11

//网络请求
#define SUCCESS 0
#define FAIL 1
#define TOKEN_INVALID 500

#define HOST "http://lightrain0506.fun/qiandd"
#define LOGIN HOST "/app/login"
#define AUTH_CODE_INFO HOST "/app/authCodeInfo"

//人物基址坐标X
//"Game.exe" + 0x00381710 -> 0x48; //人物x轴坐标 float型
//"Game.exe"+00381788 -> 0x48 //人物y轴坐标 float型
//"Game.exe"+0038174C -> 0x34 //第一角色名称
//Game.exe+003A32B0->2C->60->3C->70->C4 //小地图显示的位置  字符串
//Game.exe+003A299C->10->14->34->34->34->74->0->34->130// 血量  double

#endif // KEYCODE_H
